import category from "./modules/category";
import { topCategory } from '../store/constants'
import home from "./modules/home";
import goods from "./modules/goods";
import user from "./modules/user";
import cart from "./modules/cart"
import checkout from "./modules/checkout"

const defaultCategory = topCategory.map((item) => {
  return {
    name: item,
  }
})

export default function useStore() {
    return {
      category: category(),
      home: home(),
      goods: goods(),
      user: user(),
      cart: cart(),
      checkout:checkout()
    }
}

